package com.ams.aisino;

import io.jsonwebtoken.Claims;

public class testJWT {

    public static void main(String[] args) throws Exception{
        String jwt = JJWTUtils.create("jwt", "{id:1001,name:ramostear,roles:admin}", 600000);
        System.out.println(jwt);

        String signature = jwt;

        Claims claims = JJWTUtils.parse(signature);

        System.out.println(claims.toString());
    }
}
